export default {
    data() {
      return {
        tableLoading: false,
        drawerVisible: false,
        drawerTitle: '',
        dialogVisible: false,
        dialogTitle: '',
        pagination: {
          total: 0,
          current: 1,
          pageSize: 10
        }
      }
    },
    methods: {
      submit(val, isBack) {
        if (isBack) {
          this.pagination.current = 1
        }
        this.getData(val)
      },
      paginationChange(val) {
        this.pagination.current = val?.current || this.pagination.current
        this.pagination.pageSize = val?.pageSize || this.pagination.pageSize
        this.$refs.filterForm.submitFormFilter()
      },
      drawerCancel() {
        this.drawerVisible = false
        if (this.$refs.ruleForm) {
          this.$refs.ruleForm.resetFields()
        }
      },
      dialogCancel() {
        this.dialogVisible = false
        if (this.$refs.ruleForm) {
          this.$refs.ruleForm.resetFields()
        }
      }
    }
  }
  